{extend name="public:base" /}

{block name="css"}
<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css" href="__ADMIN__/css/style.css">
<style>
    .set-font {
        font-size: 18px;
        font-weight: bold;
    }

    .message-box {
        display: flex;
        padding: 0;
        flex-wrap: wrap;
    }

    .message-box .message-box-item {
        display: flex;
        align-items: center;
        width: 33%;
        margin-bottom: 20px;
    }


    .message-box .input {
        max-width: 58%;
    }

    .message-box .message-box-item .title {
        min-width: 100px;
        white-space: nowrap;
    }

    .two_select_box {
        width: 59%;
        display: flex;
        justify-content: space-between;
    }

    .layui-form {
        margin-right: 10px;
    }

    .layui-form:last-child {
        margin-right: 0;
    }

</style>{/block}

{block name="content"}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post">
                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">标题</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="title" placeholder="请输入标题" value="{$info.title}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">标签</label>
                                <div class="col-sm-3">
                                    <select name="tag">
                                        <option value="0">请选择标签</option>
                                        {volist name="msg_tags" id="vo"}
                                        <option value="{$vo}" {$vo == $info.tag ? 'selected' : ''}>{$vo}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="row">
                                <label class="col-sm-1 col-form-label">内容</label>
                                <div class="col-lg-6">
                                    <div class="ibox ">
                                        <textarea id="editor_id">{$info.content}</textarea>
                                        <textarea name="content" data-editor="kindEditor" style="display: none"></textarea>
                                    </div>
                                </div>
                            </div>

                            <div class="hr-line-dashed"></div>
                        </div>

                        <input type="hidden" name="id" value="{$info['id']}">

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name='js'}
<script src="/static/laydate/laydate.js"></script>
<script src="__STATIC__/layui/layui.js"></script>
<script type="text/javascript" src="__PLUG__/kindeditor/kindeditor-all.js"></script>
<script>
    <!-- 实例化编辑器 -->
    initKindEditor('editor_id');
</script>
{/block}
